<script>
    if (window.testRunner) {
        testRunner.waitUntilDone();
    }

    function finished()
    {
        if (window.testRunner)
            testRunner.notifyDone();
    }
</script>
<div id="target">
    This test is making sure that even though the image returns a 404, it still gets loaded and displayed.  This is done for legacy compat reasons,
    and is the opposite of how the object element behaves.<br>
    <img id="result" src="resources/404image.php" onload="finished()" onerror="finished()">
</div>
<div id="console"></div>
